﻿@model BenzInfo.Hockey.Grenadiers.Models.NewsletterIncsription

@{
    ViewBag.Title = BenzInfo.Hockey.Grenadiers.Resources.Dictionary.Newsletter;
}
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

<script type="text/javascript">

    $(document).ready(function () {

        $('#NewsletterForm').submit(function () {
            alert("@BenzInfo.Hockey.Grenadiers.Resources.Dictionary.SubmitNewsletterPopup");
            });
     });

</script>

@using (Html.BeginForm("AddNewsletterInscription", "Home", FormMethod.Post, new { id = "NewsletterForm", encType = "multipart/form-data" }))
{
    @Html.ValidationSummary(false)
    <fieldset>
        <legend>@BenzInfo.Hockey.Grenadiers.Resources.Dictionary.Subscription</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.LastName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.LastName)
            @Html.ValidationMessageFor(model => model.LastName)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.FirstName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.FirstName)
            @Html.ValidationMessageFor(model => model.FirstName)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Email)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Email)
            @Html.ValidationMessageFor(model => model.Email)
        </div>
    </fieldset>
}
